import aiohttp
import asyncio
import time


async def request_link(url):
    async with aiohttp.ClientSession() as session:
        async with session.get(url) as response:
            result = await response.text()
            return result


url_list = [
    'http://fanyi.youdao.com/',
    'https://gitee.com/'
]
loop = asyncio.get_event_loop()
tasks = [request_link(url) for url in url_list]
result = loop.run_until_complete(asyncio.gather(*tasks))
loop.close()
print(result)
